-- GENERATED SPELL FOR [Mangrove Ent] --


function spell0_33525(pUnit, Event) --@Hurricane,n/a--
pUnit:FullCastSpellOnTarget(63272,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33525', 11500, 1)
end

function spell1_33525(pUnit, Event) --@Nourish,Heal--
pUnit:FullCastSpellOnTarget(63242,pUnit)
pUnit:RegisterEvent('Sorts_33525', 1500, 1)
end

function spell2_33525(pUnit, Event) --@Nourish,Heal--
pUnit:FullCastSpellOnTarget(63556,pUnit)
pUnit:RegisterEvent('Sorts_33525', 1500, 1)
end

function spell3_33525(pUnit, Event) --@Tranquility,Self--
pUnit:FullCastSpellOnTarget(63241,pUnit)
pUnit:RegisterEvent('Sorts_33525', 10000, 1)
end

function spell4_33525(pUnit, Event) --@Tranquility,Self--
pUnit:FullCastSpellOnTarget(63554,pUnit)
pUnit:RegisterEvent('Sorts_33525', 10000, 1)
end

function Sorts_33525(pUnit, Event)
local choix_sorts_33525 = math.random(0, 4)
if choix_sorts_33525 == 0 then
pUnit:RegisterEvent('spell0_33525', 1, 1)
end
if choix_sorts_33525 == 1 then
pUnit:RegisterEvent('spell1_33525', 1, 1)
end
if choix_sorts_33525 == 2 then
pUnit:RegisterEvent('spell2_33525', 1, 1)
end
if choix_sorts_33525 == 3 then
pUnit:RegisterEvent('spell3_33525', 1, 1)
end
if choix_sorts_33525 == 4 then
pUnit:RegisterEvent('spell4_33525', 1, 1)
end
end

function mob33525_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33525', math.random(1500, 3000), 1)
end

function mob33525_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33525_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33525_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33525, 1, 'mob33525_Action')
RegisterUnitEvent(33525, 2, 'mob33525_Leave')
RegisterUnitEvent(33525, 3, 'mob33525_Kill')
RegisterUnitEvent(33525, 4, 'mob33525_Die')
